package com.wxapp.dispatch.service.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wxapp.common.constant.pojo.vm.ResultVm;
import com.wxapp.dispatch.api.pojo.vo.dispatch.QDispatchAddVo;
import com.wxapp.dispatch.api.pojo.vo.dispatch.QDispatchPageVo;
import com.wxapp.dispatch.api.pojo.vo.dispatch.QDispatchUpdateVo;
import com.wxapp.dispatch.api.pojo.vm.dispatch.PDispatchDetailVm;
import com.wxapp.dispatch.api.pojo.vm.dispatch.PDispatchPageVm;
import org.quartz.SchedulerException;

/**
 * @author lgl
 * @Description
 * @Datetime 2023/5/26 18:01
 * @Modified By
 */
public interface DispatchService {
    ResultVm<String> add(QDispatchAddVo vm) throws SchedulerException;

    ResultVm<PDispatchDetailVm> detail(String id);

    ResultVm<Page<PDispatchPageVm>> page(QDispatchPageVo vm);

    ResultVm<String> update(QDispatchUpdateVo vm) throws SchedulerException;

    ResultVm<String> delete(String id);

    ResultVm<String> pauseOrRes(String id, Boolean isPause) throws SchedulerException;
}
